package com.jinyao.exploit.modules.gen.dao;


import com.jinyao.exploit.modules.gen.entity.Table;
import com.jinyao.exploit.modules.gen.service.TableServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/***********************************************************************
 * 文件说明：
 * 创建信息：李晋 2018-10-15 10:35
 * 变更履历： 
 ***********************************************************************/
@FeignClient(value = "database-service", path = "${dataPath}/gen/table", fallback = TableServiceFallback.class)
public interface ITableDao {
    @GetMapping(value = "get")
    Table get(@RequestParam(value = "id") long id);
    @PostMapping(value = "get")
    Table get(@RequestBody Table table);
    @PostMapping(value = "list")
    List<Table> list(@RequestBody Table table);
    @PostMapping(value = "save")
    void save(@RequestBody Table table);
    @PostMapping(value = "delete")
    void delete(@RequestParam(value = "id") long id);
}
